package com.zxc.dao;

import com.zxc.model.Diseases.DiseasesDetails;
import com.zxc.model.Diseases.Treatment;
import com.zxc.model.Equipment.Equipment;
import com.zxc.model.Fertilizer;
import com.zxc.model.Pesticide;
import com.zxc.model.Plant;
import com.zxc.model.Tools;
import com.zxc.model.seeds;

import java.util.List;

public interface AdminDao {
    //插入植物信息
    int insertPlantInfo(Plant plant);
    //插入病症信息与治疗方法信息
    int insertDiseasesInfo(DiseasesDetails diseasesDetails);
    int insertTreatmentInfo(Treatment treatment);


// 插入肥料信息
    int insertFertilizerData(Fertilizer fertilizer);
//插入农药信息
    int insertPesticideData(Pesticide pesticide);


    //插入设备仓库数据
    int insertEquipmentWarehouseData(Equipment equipment);
    //插入肥料仓库数据
    int insertFertilizerWarehouseData(Fertilizer fertilizer);
    //插入农药仓库数据
    int insertPesticideWarehouseData(Pesticide pesticide);
    //插入种子仓库数据
    int insertSeedWarehouseData(seeds seeds);
    //插入农具仓库数据
    int insertToolsWarehouseData(Tools tools);


    //修改肥料仓库数据
    int updateFertilizerWarehouseData(Fertilizer fertilizer);
    //修改农药仓库数据
    int updatePesticideWarehouseData(Pesticide pesticide);
    //修改种子仓库数据
    int updateSeedWarehouseData(seeds seeds);
    //修改农具仓库数据
    int updateToolsWarehouseData(Tools tools);

    List<Plant> selectPlantDate(Plant plant);
    List<Tools> selectToolsDate(Tools tools);
    List<Pesticide> selectPesticideDate(Pesticide pesticide);
    List<Fertilizer>selectFertilizerDate(Fertilizer fertilizer);
}
